<?php

class Admin_HotelimageController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
       	$this->_helper->layout()->disableLayout();
       	Zend_Loader::loadFile('../application/admin/models/Hotelimage.php');
       	$Hotelimage_model = new Hotelimage();
       	$request = $this->getRequest();
       	$hotel_id = $request->getParam('hotel_id');
     	$this->view->hotel_id = $hotel_id;
    }

    public function uploadAction()
    { 
		$this->_helper->layout()->disableLayout();
    	Zend_Loader::loadFile('../application/admin/models/Upload.php');
		$clsUpload = new Image();
		$request = $this->getRequest();
	    $hotel_id = $request->getParam('hotel_id');
		$upload_dir = "/images/hotel";
		print_r($_FILES);
		$upload_file = $clsUpload->uploadFile($_FILES, 150, $hotel_id);		
    }
}